package root
{
	import flash.display.Sprite;
	import flash.display.StageAlign;
	import flash.display.StageScaleMode;
	import flash.text.TextField;
	import flash.text.TextFieldType;
	
	public class TestRoot extends Sprite
	{
		private	var	_output:TextField = null;
		
		public function TestRoot()
		{
			super();
			this.stage.scaleMode = StageScaleMode.NO_SCALE;
			this.stage.align = StageAlign.TOP_LEFT;
			this._output = new TextField();
			this._output.y = 5;
			this._output.x = 5;
			this._output.width = 400;
			this._output.height = 100;
			this._output.border = true;
			this._output.type = TextFieldType.INPUT;
			this.addChild(this._output);
		}
		
		public function set	text(str:String):void{
			this._output.text = str;
		}
		
		public	function	get text():String{
			return this._output.text;
		}
		
		public	function	trace(str:String):void{
			this._output.appendText(str);
			this._output.appendText("\n");
		}
		
		public	function	traceHtml(str:String):void{
			this._output.htmlText += str;
		}
	}
}